package com.ck.model.common;

/**
 * 节目下载
 *
 * @author linq
 */
public class ProgramDownload {
    private Long programDownloadId;
    /**
     * 设备mac
     */
    private String deviceMac;
    /**
     * 节目版本号
     */
    private String programVersion;
    /**
     * 更新时间
     */
    private Long updateTime;
    /**
     * 下载状态（0:已下载 1:下载中 2:下载失败）
     */
    private Integer downloadStatus;
    /**
     * 下载失败原因
     */
    private String downloadFailReason;
    /**
     * 数据状态（0正常，1逻辑删除）
     */
    private Integer dataStatus;

    public Long getProgramDownloadId() {
        return programDownloadId;
    }

    public void setProgramDownloadId(Long programDownloadId) {
        this.programDownloadId = programDownloadId;
    }

    public String getDeviceMac() {
        return deviceMac;
    }

    public void setDeviceMac(String deviceMac) {
        this.deviceMac = deviceMac;
    }

    public String getProgramVersion() {
        return programVersion;
    }

    public void setProgramVersion(String programVersion) {
        this.programVersion = programVersion;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDownloadStatus() {
        return downloadStatus;
    }

    public void setDownloadStatus(Integer downloadStatus) {
        this.downloadStatus = downloadStatus;
    }

    public String getDownloadFailReason() {
        return downloadFailReason;
    }

    public void setDownloadFailReason(String downloadFailReason) {
        this.downloadFailReason = downloadFailReason;
    }

    public Integer getDataStatus() {
        return dataStatus;
    }

    public void setDataStatus(Integer dataStatus) {
        this.dataStatus = dataStatus;
    }

    public ProgramDownload() {
    }

    public ProgramDownload(Long programDownloadId, String deviceMac, String programVersion, Long updateTime, Integer downloadStatus, String downloadFailReason, Integer dataStatus) {
        this.programDownloadId = programDownloadId;
        this.deviceMac = deviceMac;
        this.programVersion = programVersion;
        this.updateTime = updateTime;
        this.downloadStatus = downloadStatus;
        this.downloadFailReason = downloadFailReason;
        this.dataStatus = dataStatus;
    }

    @Override
    public String toString() {
        return "ProgramDownload{" +
                "programDownloadId=" + programDownloadId +
                ", deviceMac='" + deviceMac + '\'' +
                ", programVersion='" + programVersion + '\'' +
                ", updateTime=" + updateTime +
                ", downloadStatus=" + downloadStatus +
                ", downloadFailReason='" + downloadFailReason + '\'' +
                ", dataStatus=" + dataStatus +
                '}';
    }
}